package com.lagou.rpc.consumer;

import com.lagou.rpc.consumer.zookeeper.ZkNode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 测试类
 */
@SpringBootApplication
public class ClientBootStrap implements CommandLineRunner {
    @Autowired
    private ZkNode zkNode;

    public static void main(String[] args) {
        SpringApplication.run(ClientBootStrap.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        zkNode.watchNode();
    }
}
